cmake_minimum_required (VERSION 2.6)
project(GMath)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(GMath_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src)

include_directories(${GMath_INCLUDE_DIRS})

add_subdirectory(test)

install(DIRECTORY src/ DESTINATION include/GMath
    FILES_MATCHING 
        PATTERN "*.hpp"
        PATTERN "*.inl") 

install(FILES GMathConfig.cmake DESTINATION lib/cmake/GMath)
